package com.atguigu.ssyx.search;

import com.atguigu.ssyx.model.search.SkuEs;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * ClassName: SkuFeigenClient
 * Package: com.atguigu.ssyx.search
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-10-03
 * Time: 0:42
 */

@FeignClient("service-search")
public interface SkuFeignClient {

    //获取爆款商品
    @GetMapping("/api/search/sku/inner/findHotSkuList")
    public List<SkuEs> findHotSkuList();

    //更新商品热度
    @GetMapping("/api/search/sku/inner/incrHotScore/{skuId}")
    public Boolean incrHotScore(@PathVariable("skuId") Long skuId);

}
